import { createRouter, createWebHistory } from 'vue-router'
import Menu from '../views/Menu.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Menu
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/TuiJian.vue')
  },
  {
    path: '/pay',
    name: 'pay',
    component: ()=>import('../views/Pay.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: ()=>import('../views/test.vue')
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
